﻿using System.Collections.Generic;
using Missbot.Service;

namespace Missbot.AIModule.Pet
{
    /// <summary>
    /// 宠物等级信息
    /// </summary>
    public class PetLevel : DbBaseEntity
    {
        /// <summary>
        /// 等级
        /// </summary>
        public int Level { get; set; }
        
        /// <summary>
        /// 经验值
        /// </summary>
        public int Exp { get; set; }
        
        /// <summary>
        /// 生命值
        /// </summary>
        public int HP { get; set; }
        
        /// <summary>
        /// 耐力值
        /// </summary>
        public int Endurance { get; set; }
    }

    public static class PetLevelDA
    {
        /// <summary>
        /// 获取全部等级信息
        /// </summary>
        /// <returns></returns>
        public static IEnumerable<PetLevel> GetAll()
        {
            return MongoService<PetLevel>.Get();
        }
    }
}